aboutsummaryrefslogtreecommitdiffstats
path: root/setup.py
diff options
context:
space:
mode:
authorGravatar Jon Bernard <jbernard@jbernard.io> 2019-01-20 11:18:56 -0500
committerGravatar Jon Bernard <jbernard@jbernard.io> 2019-03-05 10:16:06 -0500
commita0fb28975309f2ea4c355e1bdb013152be97042b (patch)
tree9d8d4d1121c4eba8eba1074c1d8c36f15132daee /setup.py
parent174f42ea32529d25a7790ae956e891c6ac15a99a (diff)
downloaddotfiles-a0fb28975309f2ea4c355e1bdb013152be97042b.tar.gz
dotfiles-a0fb28975309f2ea4c355e1bdb013152be97042b.tar.bz2
dotfiles-a0fb28975309f2ea4c355e1bdb013152be97042b.zip
Finish migration from py.path to pathlib
Diffstat (limited to 'setup.py')
-rw-r--r--setup.py54
1 files changed, 28 insertions, 26 deletions
diff --git a/setup.py b/setup.py
index 522aa39..5e68f4e 100644
--- a/setup.py
+++ b/setup.py
@@ -1,42 +1,44 @@
-from setuptools import setup, find_packages
-from dotfiles import __version__
+import io
+import re
+from setuptools import setup
+
+with io.open("README.md", "rt", encoding="utf8") as f:
+ readme = f.read()
+
+with io.open("dotfiles/__init__.py", "rt", encoding="utf8") as f:
+ version = re.search(r"__version__ = \'(.*?)\'", f.read()).group(1)
setup(
name='dotfiles',
- version=__version__,
- description='Easily manage your dotfiles',
- long_description=open('README.md', encoding='utf-8').read(),
- long_description_content_type='text/markdown',
- author='Jon Bernard',
- author_email='jbernard@jbernard.io',
- license='ISC',
+ version=version,
url='https://github.com/jbernard/dotfiles',
- packages=find_packages(),
- tests_require=[
- 'pytest',
- 'pytest-flake8',
- ],
- setup_requires=['pytest-runner'],
- entry_points={
- 'console_scripts': [
- 'dotfiles=dotfiles.cli:cli',
- ],
+ project_urls={
+ 'Code': 'https://github.com/jbernard/dotfiles',
+ 'Issues': 'https://github.com/jbernard/dotfiles/issues',
},
- install_requires=['click'],
+ license='ISC',
+ author='Jon Bernard',
+ author_email='jbernard@jbernard.io',
+ description='Easily manage your dotfiles',
+ long_description=readme,
+ long_description_content_type='text/markdown',
+ packages=["dotfiles"],
+ python_requires=">=3.6",
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: ISC License (ISCL)'
'Programming Language :: Python',
- 'Programming Language :: Python :: 2',
- 'Programming Language :: Python :: 2.7',
- 'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Topic :: Utilities',
],
- project_urls={
- 'Bug Reports': 'https://github.com/jbernard/dotfiles/issues',
- 'Source': 'https://github.com/jbernard/dotfiles',
+ install_requires=['click'],
+ setup_requires=['pytest-runner'],
+ tests_require=['pytest', 'pytest-flake8'],
+ entry_points={
+ 'console_scripts': [
+ 'dotfiles=dotfiles.cli:cli',
+ ],
},
)