Skip to content

Commit

Permalink
Clean up setup.py for 2021 (FEniCS#51)
Browse files Browse the repository at this point in the history
* Clean up setup.py

* Remove unused

* Add to changelog

* More generic author line
  • Loading branch information
chrisrichardson committed Apr 23, 2021
1 parent cc99075 commit 1cf2c90
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 14 deletions.
4 changes: 2 additions & 2 deletions ChangeLog.rst
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
Changelog
=========

2019.2.0.dev0
2021.1.0
-------------

- No changes yet.
- Mixed dimensional domain support

2019.1.0 (2019-04-17)
---------------------
Expand Down
20 changes: 8 additions & 12 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,13 @@
from setuptools import setup
import sys

module_name = "ufl"

if sys.version_info < (3, 5):
print("Python 3.5 or higher required, please upgrade.")
if sys.version_info < (3, 6):
print("Python 3.6 or higher required, please upgrade.")
sys.exit(1)

version = "2019.2.0.dev0"
version = "2021.1.0"

url = "https://bitbucket.org/fenics-project/{}/".format(module_name)
tarball = None
if 'dev' not in version:
tarball = url + "downloads/fenics-{}-{}.tar.gz".format(module_name, version)
url = "https://github.com/FEniCS/ufl"

CLASSIFIERS = """\
Development Status :: 5 - Production/Stable
Expand All @@ -27,8 +22,10 @@
Operating System :: Microsoft :: Windows
Programming Language :: Python
Programming Language :: Python :: 3
Programming Language :: Python :: 3.5
Programming Language :: Python :: 3.6
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Topic :: Scientific/Engineering :: Mathematics
Topic :: Software Development :: Libraries :: Python Modules
"""
Expand All @@ -37,10 +34,9 @@
name="fenics-ufl",
version=version,
description="Unified Form Language",
author="Martin Sandve Alnæs, Anders Logg",
author="FEniCS Project Team",
author_email="[email protected]",
url=url,
download_url=tarball,
classifiers=[_f for _f in CLASSIFIERS.split('\n') if _f],
packages=[
"ufl",
Expand Down

0 comments on commit 1cf2c90

Please sign in to comment.