Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit ecb0d4c

Browse files
committed
setup.py improvements
1 parent b78282f commit ecb0d4c

File tree

3 files changed

+6
-9
lines changed

3 files changed

+6
-9
lines changed

freqgen/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22
from .generate import generate
33
from .pyeasyga import GeneticAlgorithm
44
from .visualize import visualize
5+
from .__version__ import __version__

freqgen/__version__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
__version__ = '0.1.0'

setup.py

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,11 @@
1313

1414
# Package meta-data.
1515
NAME = 'freqgen'
16-
DESCRIPTION = 'Generate sequences'
16+
DESCRIPTION = 'Generate DNA sequences with specified amino acid, codon, and k-mer frequencies.'
1717
URL = 'https://github.com/Lab41/freqgen'
1818
EMAIL = 'benjamindlee@me.com'
1919
AUTHOR = 'Benjamin Lee'
2020
REQUIRES_PYTHON = '>=3.5.0'
21-
VERSION = 0.1
2221

2322
# What packages are required for this module to be executed?
2423
REQUIRED = [
@@ -39,12 +38,8 @@
3938

4039
# Load the package's __version__.py module as a dictionary.
4140
about = {}
42-
if not VERSION:
43-
with open(os.path.join(here, NAME, '__version__.py')) as f:
44-
exec(f.read(), about)
45-
else:
46-
about['__version__'] = VERSION
47-
41+
with open(os.path.join(here, NAME, '__version__.py')) as f:
42+
exec(f.read(), about)
4843

4944
class UploadCommand(Command):
5045
"""Support setup.py upload."""
@@ -104,7 +99,7 @@ def run(self):
10499
classifiers=[
105100
# Trove classifiers
106101
# Full list: https://pypi.python.org/pypi?%3Aaction=list_classifiers
107-
'License :: OSI Approved :: MIT License',
102+
'License :: OSI Approved :: Apache Software License',
108103
'Programming Language :: Python',
109104
'Programming Language :: Python :: 3',
110105
'Programming Language :: Python :: 3.6',

0 commit comments

Comments
 (0)