Skip to content

Commit 84522af

Browse files
author
zhenwei-li
committed
the setup optimization
1 parent 2922f24 commit 84522af

1 file changed

Lines changed: 6 additions & 9 deletions

File tree

setup.py

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,9 @@ def read_text(file_name):
2626
return content
2727

2828

29-
PROJECT_PREFIX = '/Users/dovsnier/Documents/Work_Space_Python/Python-DeMo/'
30-
project = PROJECT_PREFIX
29+
project = os.getenv('BASE_PROJECT_PREFIX')
30+
if project is None:
31+
raise KeyError('the please configure BASE_PROJECT_PREFIX environment variable, otherwise it cannot run')
3132
print(project)
3233
PROJECT_DIRECTORY = 'directory' # project directory
3334
PROJECT_README_FILE = 'README.md' # project readme file
@@ -82,6 +83,7 @@ def read_text(file_name):
8283
# Indicate who your project is intended for
8384
# 'Intended Audience :: Developers',
8485
# 'Topic :: Software Development :: Build Tools',
86+
'Topic :: Software Development :: Libraries',
8587

8688
# Pick your license as you wish
8789
'License :: OSI Approved :: MIT License',
@@ -93,21 +95,16 @@ def read_text(file_name):
9395
'Programming Language :: Python :: 3.8',
9496
'Programming Language :: Python :: 3.9',
9597
# 'Programming Language :: Python :: 3 :: Only',
96-
'Operating System :: OS Independent'
98+
# 'Operating System :: OS Independent'
9799
]
98-
DVSNIER_KEYWORDS = 'dir, development' # Optional
100+
DVSNIER_KEYWORDS = 'directory, development' # Optional
99101
DVSNIER_PACKAGE_DIR = {'': 'src'} # Optional
100102
# DVSNIER_PY_MODULES = ["xxx"] # Required
101103
# DVSNIER_PACKAGES = find_packages(include=['xxx', 'xxx.*']) # Required
102104
DVSNIER_PACKAGES = find_packages(where='src') # Required
103105
# DVSNIER_PYTHON_REQUIRES = '>=2.7, !=3.0.*, !=3.1.*, !=3.2.*'
104106
DVSNIER_PYTHON_REQUIRES = '>=2.7, <4'
105107
DVSNIER_INSTALL_REQUIRES = [ # Optional
106-
# 'discover==0.4.0',
107-
# 'build==0.4.0',
108-
# 'pathlib2==2.3.5',
109-
# 'toml==0.10.2',
110-
# 'twine==1.15.0',
111108
]
112109
DVSNIER_EXTRAS_REQUIRE = { # Optional
113110
'dev': ['check-manifest'],

0 commit comments

Comments
 (0)