Skip to content

Commit

Permalink
Merge pull request #2182 from jimklimov/pynut-license
Browse files Browse the repository at this point in the history
PyNUT license and other setup.py metadata
  • Loading branch information
jimklimov authored Nov 15, 2023
2 parents 8dc9e72 + e647337 commit d2a2401
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 14 deletions.
1 change: 1 addition & 0 deletions .github/workflows/PyNUTClient.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ jobs:
mkdir src ;
for F in *.py.in ; do sed -e "s,@PYTHON@,$(command -v python)," < "$F" > "src/`basename "$F" .in`" ; done ;
cp README.adoc README.txt ;
cp ../../../LICENSE-GPL3 . ;
chmod +x src/test*.py ;
- name: Build a binary wheel
run: >-
Expand Down
1 change: 1 addition & 0 deletions scripts/python/module/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@
/src
/README.txt
/.pypi-*
/LICENSE-GPL3
5 changes: 3 additions & 2 deletions scripts/python/module/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ $(GENERATED_DIST): .pypi-dist

clean-local:
rm -rf $(GENERATED_SRC) $(GENERATED_DIST)
rm -f .pypi-src .pypi-dist
rm -f .pypi-src .pypi-dist LICENSE-GPL3

MAINTAINERCLEANFILES = Makefile.in .dirstamp .pypi-tools*

Expand All @@ -32,7 +32,7 @@ upload publish:
esac

# README.txt is also a part of module standard expectations
.pypi-src: test_nutclient.py.in PyNUT.py.in setup.py.in README.adoc Makefile
.pypi-src: test_nutclient.py.in PyNUT.py.in setup.py.in README.adoc Makefile $(top_srcdir)/LICENSE-GPL3
@echo " PYPI Generate PyPI module source"
@rm -rf $(GENERATED_SRC) "$@"
@mkdir src
Expand All @@ -52,6 +52,7 @@ upload publish:
if test -x "$(srcdir)/$${B}.in" ; then chmod +x "src/$${B}"; fi ; \
done ; \
cp -pf "$(srcdir)/README.adoc" README.txt || exit ; \
cp -pf "$(top_srcdir)/LICENSE-GPL3" . || exit ; \
echo "from . import PyNUT" > src/__init__.py || exit
@touch "$@"

Expand Down
25 changes: 13 additions & 12 deletions scripts/python/module/setup.py.in
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,19 @@ with codecs.open(os.path.join(here, "README.txt"), encoding="utf-8") as fh:
long_description = "\n" + fh.read()

setup(
name="PyNUTClient",
version='@NUT_SOURCE_GITREV_NUMERIC@',
author="The Network UPS Tools project",
author_email="jimklimov+nut@gmail.com",
description="Python client bindings for NUT",
url = "https://github.com/networkupstools/nut/tree/master/scripts/python/module",
long_description_content_type="text/plain", # NOTE: No asciidoc so far, see https://packaging.python.org/en/latest/specifications/core-metadata/
long_description=long_description,
packages=find_packages(),
install_requires=['telnetlib'],
keywords=['pypi', 'cicd', 'python'],
classifiers=[
name = "PyNUTClient",
version = '@NUT_SOURCE_GITREV_NUMERIC@',
author = "The Network UPS Tools project",
license_files = ('LICENSE-GPL3',),
author_email = "jimklimov+nut@gmail.com",
description = "Python client bindings for NUT",
url = "https://github.com/networkupstools/nut/tree/master/scripts/python/module",
long_description_content_type = "text/plain", # NOTE: No asciidoc so far, see https://packaging.python.org/en/latest/specifications/core-metadata/
long_description = long_description,
packages = find_packages(),
# install_requires = ['telnetlib'], # NOTE: telnetlib.py is part of Python core for tested 2.x and 3.x versions, not something 'pip' can download
keywords = ['pypi', 'cicd', 'python'],
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Programming Language :: Python :: 2.6",
Expand Down

0 comments on commit d2a2401

Please sign in to comment.