Skip to content

Commit

Permalink
Make publishing to PyPI possible
Browse files Browse the repository at this point in the history
  • Loading branch information
anned20 committed Jun 9, 2019
1 parent f7fdeb9 commit 7cdb8f6
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 22 deletions.
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -114,3 +114,8 @@ dmypy.json

# Pyre type checker
.pyre/

# Other stuff
.pypirc
deb_dist/
begoneads-*.tar.gz
9 changes: 8 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
.PHONY: format
.PHONY: format publish

format: *.py
autopep8 --in-place *.py

publish-pypi:
rm -rf dist/*
python3 setup.py sdist bdist_wheel
python3 -m twine upload dist/*

publish: publish-pypi
46 changes: 25 additions & 21 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,33 +1,37 @@
from setuptools import setup
from setuptools import setup, find_packages


def readme():
with open('README.md') as f:
return f.read()

setup(name='begoneads',
version='0.0.3',
description='BeGoneAds puts some popular hosts file lists into the hosts file as a adblocker measure.',
long_description=readme(),
url='http://github.com/anned20/begoneads',
entry_points = {
'console_scripts': ['begoneads=begoneads.begoneads:cli'],
},
classifiers=[

setup(
name='begoneads',
version='0.0.4',
description='BeGoneAds puts some popular hosts file lists into the hosts file as a adblocker measure.',
long_description=readme(),
long_description_content_type="text/markdown",
url='http://github.com/anned20/begoneads',
entry_points={
'console_scripts': ['begoneads=begoneads.begoneads:cli'],
},
classifiers=[
'Development Status :: 3 - Alpha',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Topic :: System :: Networking',
],
author='Anne Douwe Bouma',
author_email='[email protected]',
license='MIT',
packages=['begoneads'],
install_requires=[
'click',
'requests',
'tqdm',
],
zip_safe=False
],
author='Anne Douwe Bouma',
author_email='[email protected]',
license='MIT',
packages=find_packages(),
install_requires=[
'click',
'requests',
'tqdm',
],
zip_safe=False
)

0 comments on commit 7cdb8f6

Please sign in to comment.