Skip to content
This repository has been archived by the owner on Jan 26, 2025. It is now read-only.

Commit

Permalink
chore: publish routines
Browse files Browse the repository at this point in the history
  • Loading branch information
kmpm committed Dec 2, 2020
1 parent 974a1d8 commit 6893b41
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 28 deletions.
10 changes: 7 additions & 3 deletions doc/DEVELOP.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,20 @@ export SERIALPORT=/dev/ttyUSB0

Publishing
----------
* http://peterdowns.com/posts/first-time-with-pypi.html
* https://packaging.python.org/tutorials/packaging-projects/

Please make sure to bump the version number in
nodemcu_uploader/version.py as well as the testing of that
number in tests/misc.py

```bash
#
python -m pip install --upgrade setuptools wheel twine
python setup.py sdist bdist_wheel

#test upload
python setup.py sdist upload -r pypitest
python -m twine upload -u __token__ --repository testpypi dist/*

#real upload
python setup.py sdist upload -r pypi
python -m twine upload -u __token__ dist/*
```
57 changes: 32 additions & 25 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,29 +7,36 @@

exec(open('nodemcu_uploader/version.py').read()) # pylint: disable=W0122

with open("README.md", "r") as fh:
long_description = fh.read()


setup(name='nodemcu-uploader',
version=__version__, # noqa: F821
install_requires=[
'pyserial>=3.4'
],
packages=['nodemcu_uploader'],
# package_dir={'nodemcu_uploader': 'lib'},
url='https://github.com/kmpm/nodemcu-uploader',
author='kmpm',
author_email='[email protected]',
description='tool for uploading files to the filesystem of an ESP8266 running NodeMCU.',
keywords=['esp8266', 'upload', 'nodemcu'],
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'Programming Language :: Python :: 3'
],
license='MIT',
test_suite="tests.get_tests",
entry_points={
'console_scripts': [
'nodemcu-uploader=nodemcu_uploader.main:main_func'
]
},
zip_safe=False
)
version=__version__, # noqa: F821
python_requires='>=3.5',
install_requires=[
'pyserial>=3.4'
],
packages=['nodemcu_uploader'],
# package_dir={'nodemcu_uploader': 'lib'},
url='https://github.com/kmpm/nodemcu-uploader',
author='kmpm',
author_email='[email protected]',
description='tool for uploading files to the filesystem of an ESP8266 running NodeMCU.',
long_description=long_description,
long_description_content_type="text/markdown",
keywords=['esp8266', 'upload', 'nodemcu'],
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'Programming Language :: Python :: 3'
],
license='MIT',
test_suite="tests.get_tests",
entry_points={
'console_scripts': [
'nodemcu-uploader=nodemcu_uploader.main:main_func'
]
},
zip_safe=False,
)

0 comments on commit 6893b41

Please sign in to comment.