Skip to content

Commit 73d821e

Browse files
committed
0.4b14: testPyPI. switching to setup.cfg transitional commit
1 parent cbc2d65 commit 73d821e

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

setup.py

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,20 @@
11
import sys
2+
from types import SimpleNamespace
3+
24
from setuptools import setup
5+
from setuptools.config import read_configuration
36

47
if sys.version_info[0] < 3:
58
sys.stdout.write('package requires python3')
69
sys.exit(1)
710

8-
from ab12phylo_cmd.__init__ import __version__, __author__, __email__, __license__
11+
pkg_meta = SimpleNamespace(**read_configuration('setup.cfg')['metadata'])
912

10-
setup(name='ab12phylo',
11-
version=__version__,
12-
author=__author__,
13-
author_email=__email__,
14-
license=__license__,
13+
setup(name='ab12phylo-lkndl',
14+
version=pkg_meta.version,
15+
author=pkg_meta.author,
16+
author_email=pkg_meta.author_email,
17+
license=pkg_meta.license,
1518
description='An integrated pipeline for maximum likelihood '
1619
'phylogenetic tree inference from ABI sequencing data',
1720
long_description=open('README.md', 'r').read(),
@@ -31,7 +34,7 @@
3134
'matplotlib', 'svgutils', 'pillow', 'requests'],
3235
classifiers=['Development Status :: 4 - Beta',
3336
'Programming Language :: Python :: 3',
34-
'License :: OSI Approved :: MIT License',
35-
'Operating System :: Unix'],
37+
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
38+
'Operating System :: OS Independent'],
3639
keywords=['bioinformatics', 'phylogenetics', 'population genetics'],
3740
python_requires='>=3.6')

0 commit comments

Comments
 (0)