Skip to content

Commit

Permalink
Update setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
AnthonyBloomer committed May 2, 2023
1 parent 09a9ba8 commit 5c5e44d
Showing 1 changed file with 33 additions and 34 deletions.
67 changes: 33 additions & 34 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@
class PublishCommand(Command):
"""Support setup.py publish."""

description = 'Build and publish the package.'
description = "Build and publish the package."
user_options = []

@staticmethod
def status(s):
"""Prints things in bold."""
print('\033[1m{0}\033[0m'.format(s))
print("\033[1m{0}\033[0m".format(s))

def initialize_options(self):
pass
Expand All @@ -31,43 +31,42 @@ def finalize_options(self):

def run(self):
try:
self.status('Removing previous builds…')
rmtree(os.path.join(here, 'dist'))
self.status("Removing previous builds…")
rmtree(os.path.join(here, "dist"))
except:
pass

self.status('Building Source and Wheel (universal) distribution…')
os.system('{0} setup.py sdist bdist_wheel --universal'.format(sys.executable))
self.status("Building Source and Wheel (universal) distribution…")
os.system("{0} setup.py sdist bdist_wheel --universal".format(sys.executable))

self.status('Uploading the package to PyPi via Twine…')
os.system('twine upload dist/*')
self.status("Uploading the package to PyPi via Twine…")
os.system("twine upload dist/*")

sys.exit()


setup(name='daftlistings',
version='2.0.3',
description='A library that enables programmatic interaction with daft.ie. Daft.ie has nationwide coverage and contains about 80% of the total available properties in Ireland.',
long_description=long_descr,
long_description_content_type='text/markdown',
url='https://github.com/AnthonyBloomer/daftlistings',
author='Anthony Bloomer',
keywords=['daft', 'real estate', 'daft.ie'],
author_email='ant0@protonmail.ch',
license='MIT',
packages=['daftlistings'],
install_requires=[
'requests',
'folium'
],
classifiers=[
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
"Topic :: Software Development :: Libraries",
'Programming Language :: Python',
'Programming Language :: Python :: 3.9',
],
cmdclass={
'publish': PublishCommand,
},
zip_safe=False)
setup(
name="daftlistings",
version="2.0.3",
description="A library that enables programmatic interaction with daft.ie. Daft.ie has nationwide coverage and contains about 80% of the total available properties in Ireland.",
long_description=long_descr,
long_description_content_type="text/markdown",
url="https://github.com/AnthonyBloomer/daftlistings",
author="Anthony Bloomer",
keywords=["daft", "real estate", "daft.ie"],
author_email="ant0@protonmail.ch",
license="MIT",
packages=["daftlistings"],
install_requires=["requests", "folium"],
classifiers=[
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Topic :: Software Development :: Libraries",
"Programming Language :: Python",
"Programming Language :: Python :: 3.9",
],
cmdclass={
"publish": PublishCommand,
},
zip_safe=False,
)

0 comments on commit 5c5e44d

Please sign in to comment.