-
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #25 from source-foundry/dev
v3.1.0
- Loading branch information
Showing
8 changed files
with
102 additions
and
68 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
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
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# | ||
# This file is autogenerated by pip-compile | ||
# To update, run: | ||
# | ||
# pip-compile | ||
# | ||
commandlines==0.4.1 # via font-line (setup.py) | ||
fonttools==4.6.0 # via font-line (setup.py) | ||
standardstreams==0.2.0 # via font-line (setup.py) |
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,14 +1,27 @@ | ||
import io | ||
import os | ||
import re | ||
import sys | ||
from setuptools import setup, find_packages | ||
|
||
|
||
def docs_read(fname): | ||
return open(os.path.join(os.path.dirname(__file__), 'docs', fname)).read() | ||
# Use repository Markdown README.md for PyPI long description | ||
try: | ||
with io.open("README.md", encoding="utf-8") as f: | ||
readme = f.read() | ||
except IOError as readme_e: | ||
sys.stderr.write( | ||
"[ERROR] setup.py: Failed to read the README.md file for the long description definition: {}".format( | ||
str(readme_e) | ||
) | ||
) | ||
raise readme_e | ||
|
||
|
||
def version_read(): | ||
settings_file = open(os.path.join(os.path.dirname(__file__), 'lib', 'fontline', 'settings.py')).read() | ||
settings_file = open( | ||
os.path.join(os.path.dirname(__file__), "lib", "fontline", "settings.py") | ||
).read() | ||
major_regex = """major_version\s*?=\s*?["']{1}(\d+)["']{1}""" | ||
minor_regex = """minor_version\s*?=\s*?["']{1}(\d+)["']{1}""" | ||
patch_regex = """patch_version\s*?=\s*?["']{1}(\d+)["']{1}""" | ||
|
@@ -28,38 +41,35 @@ def version_read(): | |
|
||
|
||
setup( | ||
name='font-line', | ||
name="font-line", | ||
version=version_read(), | ||
description='A font vertical metrics reporting and line spacing adjustment tool', | ||
long_description=(docs_read('README.rst')), | ||
url='https://github.com/source-foundry/font-line', | ||
license='MIT license', | ||
author='Christopher Simpkins', | ||
author_email='[email protected]', | ||
platforms=['any'], | ||
description="A font vertical metrics reporting and line spacing adjustment tool", | ||
long_description=readme, | ||
long_description_content_type="text/markdown", | ||
url="https://github.com/source-foundry/font-line", | ||
license="MIT license", | ||
author="Christopher Simpkins", | ||
author_email="[email protected]", | ||
platforms=["any"], | ||
packages=find_packages("lib"), | ||
package_dir={'': 'lib'}, | ||
install_requires=['commandlines', 'standardstreams', 'fontTools'], | ||
entry_points={ | ||
'console_scripts': [ | ||
'font-line = fontline.app:main' | ||
], | ||
}, | ||
keywords='font,typeface,fonts,spacing,line spacing,spaces,vertical metrics,metrics,type', | ||
package_dir={"": "lib"}, | ||
install_requires=["commandlines", "standardstreams", "fontTools"], | ||
entry_points={"console_scripts": ["font-line = fontline.app:main"],}, | ||
keywords="font,typeface,fonts,spacing,line spacing,spaces,vertical metrics,metrics,type", | ||
include_package_data=True, | ||
classifiers=[ | ||
'Development Status :: 5 - Production/Stable', | ||
'Natural Language :: English', | ||
'License :: OSI Approved :: MIT License', | ||
'Operating System :: OS Independent', | ||
'Programming Language :: Python', | ||
'Programming Language :: Python :: 2', | ||
'Programming Language :: Python :: 2.7', | ||
'Programming Language :: Python :: 3', | ||
'Programming Language :: Python :: 3.3', | ||
'Programming Language :: Python :: 3.4', | ||
'Programming Language :: Python :: 3.5', | ||
'Programming Language :: Python :: 3.6', | ||
'Topic :: Software Development :: Libraries :: Python Modules', | ||
"Development Status :: 5 - Production/Stable", | ||
"Natural Language :: English", | ||
"License :: OSI Approved :: MIT License", | ||
"Operating System :: OS Independent", | ||
"Programming Language :: Python", | ||
"Programming Language :: Python :: 2", | ||
"Programming Language :: Python :: 2.7", | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: 3.3", | ||
"Programming Language :: Python :: 3.4", | ||
"Programming Language :: Python :: 3.5", | ||
"Programming Language :: Python :: 3.6", | ||
"Topic :: Software Development :: Libraries :: Python Modules", | ||
], | ||
) |
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