forked from FEniCS/ufl
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Clean up setup.py for 2021 (FEniCS#51)
* Clean up setup.py * Remove unused * Add to changelog * More generic author line
- Loading branch information
1 parent
cc99075
commit 1cf2c90
Showing
2 changed files
with
10 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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 | ||
""" | ||
|
@@ -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", | ||
|