|
1 | 1 | import pathlib
|
2 | 2 | from setuptools import setup, find_packages
|
3 | 3 |
|
| 4 | +from os import environ |
| 5 | + |
4 | 6 | # The directory containing this file
|
5 | 7 | HERE = pathlib.Path(__file__).parent
|
6 | 8 |
|
7 | 9 | # The text of the README file
|
8 | 10 | README = (HERE / "README.md").read_text()
|
9 | 11 |
|
10 |
| -# This call to setup() does all the work |
| 12 | +package_name = "thirdweb-sdk" |
| 13 | +if "PACKAGE_NAME" in environ: |
| 14 | + package_name = environ["PACKAGE_NAME"] |
| 15 | + |
11 | 16 | setup(
|
12 |
| - name="nftlabs-sdk", |
| 17 | + name=package_name, |
13 | 18 | version="0.3.0",
|
14 |
| - description="Official Nftlabs sdk", |
| 19 | + description="Official Thirdweb sdk", |
15 | 20 | long_description=README,
|
16 | 21 | long_description_content_type="text/markdown",
|
17 | 22 | url="https://github.com/nftlabs/nftlabs-sdk-python",
|
18 | 23 | author="NFTLabs",
|
19 |
| - author_email="pythonsdk@thirdweb.com", |
| 24 | + author_email="sdk@thirdweb.com", |
20 | 25 | license="MIT",
|
21 | 26 | classifiers=[
|
22 | 27 | "License :: OSI Approved :: MIT License",
|
|
27 | 32 | include_package_data=True,
|
28 | 33 | install_requires=["dataclasses-json", "thirdweb-web3",
|
29 | 34 | "requests", "thirdweb-contract-wrappers", "web3"],
|
| 35 | + py_modules=["thirdweb", "nftlabs"] |
30 | 36 | )
|
0 commit comments