Skip to content

Commit cff9a99

Browse files
committed
Better description and package name handling
1 parent f671850 commit cff9a99

File tree

2 files changed

+9
-10
lines changed

2 files changed

+9
-10
lines changed

.travis.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,6 @@ script: nosetests
99
deploy:
1010
provider: pypi
1111
username: __token__
12-
skip_cleanup: true
1312
skip_existing: true
1413
on:
1514
branch: main
16-
before_deploy:
17-
# set different name for pypi upload
18-
- sed -i -e 's/NAME = "leetcode"/NAME = "python-leetcode"/g' setup.py

setup.py

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,16 @@
99
Contact: pv.safronov@gmail.com
1010
Generated by: https://github.com/swagger-api/swagger-codegen.git
1111
"""
12+
import os
1213

13-
from setuptools import setup, find_packages # noqa: H301
14+
from setuptools import find_packages, setup # noqa: H301
15+
16+
NAME = "python-leetcode"
17+
VERSION = "1.0.1"
18+
19+
with open("README.md") as readme:
20+
DESCRIPTION = readme.read()
1421

15-
NAME = "leetcode"
16-
VERSION = "1.0.0"
1722
# To install the library, run the following
1823
#
1924
# python setup.py install
@@ -33,7 +38,5 @@
3338
install_requires=REQUIRES,
3439
packages=find_packages(),
3540
include_package_data=True,
36-
long_description="""\
37-
Leetcode API implementation. # noqa: E501
38-
"""
41+
long_description=DESCRIPTION,
3942
)

0 commit comments

Comments
 (0)