Skip to content

Commit

Permalink
fix setup depen
Browse files Browse the repository at this point in the history
  • Loading branch information
TsumiNa committed Jan 25, 2018
1 parent 3bb7a83 commit c452fa1
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 10 deletions.
21 changes: 12 additions & 9 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ def get_requirements(filename: str):
try:
SHORT_DESCRIPTION = package.__short_description__ # GitHub Short Description
except:
print(
"'__short_description__' not found in '%s.__init__.py'!" % PKG_NAME)
print("'__short_description__' not found in '%s.__init__.py'!" %
PKG_NAME)
SHORT_DESCRIPTION = "No short description!"

# Long description will be the body of content on PyPI page
Expand Down Expand Up @@ -95,24 +95,29 @@ def get_requirements(filename: str):
MAINTAINER_EMAIL = None

PACKAGES, INCLUDE_PACKAGE_DATA, PACKAGE_DATA, PY_MODULES = (
None, None, None, None,
None,
None,
None,
None,
)

# It's a directory style package
if os.path.exists(__file__[:-8] + PKG_NAME):
# Include all sub packages in package directory
PACKAGES = find_packages(exclude=["*.tests", "*.tests.*", "tests.*", "tests"])
PACKAGES = find_packages(
exclude=["*.tests", "*.tests.*", "tests.*", "tests"])

# Include everything in package directory
INCLUDE_PACKAGE_DATA = True
PACKAGE_DATA = {
"": ["*.*"],
}


# It's a single script style package
elif os.path.exists(__file__[:-8] + PKG_NAME + ".py"):
PY_MODULES = [PKG_NAME, ]
PY_MODULES = [
PKG_NAME,
]

# The project directory name is the GitHub repository name
repository_name = package.__name__
Expand Down Expand Up @@ -171,14 +176,12 @@ def get_requirements(filename: str):
classifiers=CLASSIFIERS,
platforms=PLATFORMS,
license=LICENSE,
setup_requires=['pytest-runner'],
setup_requires=['pytest-runner'] + REQUIRES,
install_requires=REQUIRES,
tests_require=REQUIRES_TEST,
)

"""
Appendix
--------
classifiers: https://pypi.python.org/pypi?%3Aaction=list_classifiers
"""

2 changes: 1 addition & 1 deletion xenonpy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# license that can be found in the LICENSE file.

__version__ = '0.1.0'
__release__ = 'b5'
__release__ = 'b6'
__short_description__ = "material descriptor library"
__license__ = "BSD (3-clause)"
__author__ = "TsumiNa"
Expand Down

0 comments on commit c452fa1

Please sign in to comment.