-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7e23340
commit 5d6d896
Showing
4 changed files
with
49 additions
and
16 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/usr/bin/env python3 | ||
# _version.py | ||
__version__ = '1.0.0a1' | ||
__app__ = 'chip_label' | ||
__author__ = 'Dominic Thibodeau' | ||
__author_email__ = '[email protected]' | ||
__description__ = 'Chip Label Generator' | ||
__url__ = 'https://github.com/hotkeysoft/chiplabel_py' | ||
__year__ = 2020 | ||
|
||
def print_version_info(): | ||
v = f'{__app__} {__description__} version {__version__}' | ||
print(v) | ||
print('-'*len(v)) | ||
print(f'{__year__} {__author__} {__author_email__}') | ||
print(__url__) | ||
|
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
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 |
---|---|---|
@@ -1,17 +1,23 @@ | ||
import setuptools | ||
from distutils.util import convert_path | ||
|
||
with open("README.md", "r") as fh: | ||
long_description = fh.read() | ||
with open("README.md", "r") as readme_file: | ||
long_description = readme_file.read() | ||
|
||
version_info = {} | ||
ver_path = convert_path('chiplabel/_version.py') | ||
with open(ver_path) as ver_file: | ||
exec(ver_file.read(), version_info) | ||
|
||
setuptools.setup( | ||
name="chiplabel", | ||
version="1.0.0a1", | ||
author="Dominic Thibodeau", | ||
author_email="[email protected]", | ||
description="Chip label generator", | ||
long_description=long_description, | ||
long_description_content_type="text/markdown", | ||
url="https://github.com/hotkeysoft/chiplabel_py", | ||
name = "chiplabel", | ||
version = version_info['__version__'], | ||
author = version_info['__author__'], | ||
author_email = version_info['__author_email__'], | ||
description = version_info['__description__'], | ||
long_description = long_description, | ||
long_description_content_type = "text/markdown", | ||
url = version_info['__url__'], | ||
packages=setuptools.find_packages(include=['chiplabel']), | ||
include_package_data = True, | ||
package_data={'chiplabel': ['fonts/*', 'chips/*']}, | ||
|
@@ -26,11 +32,11 @@ | |
"Programming Language :: Python :: 3", | ||
"Topic :: Utilities", | ||
], | ||
python_requires='>=3.6', | ||
install_requires=['Pillow', 'PyYAML'], | ||
setup_requires=['pytest-runner'], | ||
tests_require=['pytest'], | ||
entry_points={ | ||
python_requires = '>=3.6', | ||
install_requires = ['Pillow', 'PyYAML'], | ||
setup_requires = ['pytest-runner'], | ||
tests_require = ['pytest'], | ||
entry_points = { | ||
'console_scripts': ['chip_label=chiplabel.__main__:main'] | ||
}, | ||
) |