Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gajim
python-nbxmpp
Commits
510072da
Commit
510072da
authored
Jan 08, 2023
by
Philipp Hörist
Browse files
change: Port package to pyproject.toml
parent
3e4fee24
Changes
6
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
510072da
...
...
@@ -24,7 +24,8 @@ build-linux:
stage
:
build
dependencies
:
[]
script
:
-
python3 setup.py sdist bdist_wheel
-
pip install build
-
python3 -m build
-
python3 .ci/debian_build.py "$(find dist/nbxmpp-*.tar.gz)" 1 --pkgprefix=python3-
artifacts
:
...
...
debian/control
View file @
510072da
Source: python3-nbxmpp-nightly
Section:
net
Section:
python
Priority: optional
Maintainer: Gajim Maintainers <ci@gajim.org>
Build-Depends:
debhelper-compat (= 13),
dh-python,
libglib2.0-0 (>= 2.60),
gir1.2-soup-3.0,
python3-all,
python3-gi,
python3-idna,
python3-packaging,
python3-precis-i18n,
python3-setuptools,
python3-setuptools
(>= 65.0.0)
,
Standards-Version: 4.1.4
Rules-Requires-Root: no
Homepage: https://dev.gajim.org/gajim/python-nbxmpp
...
...
@@ -23,14 +22,11 @@ Package: python3-nbxmpp-nightly
Architecture: all
Depends: ${misc:Depends},
${python3:Depends},
libglib2.0-0 (>= 2.60),
gir1.2-soup-3.0,
python3-gi,
python3-idna,
python3-packaging,
python3-precis-i18n,
Recommends: python3-gssapi,
Breaks: gajim (<< 1.4~)
Breaks: gajim (<< 1.6~)
Conflicts: python3-nbxmpp
Description: Non blocking XMPP Python library
python-nbxmpp is a Python library that provides a way for Python applications
to use the XMPP network. This library was initially a fork of xmpppy.
\ No newline at end of file
to use the XMPP network. This library was initially a fork of xmpppy.
pyproject.toml
View file @
510072da
[build-system]
requires
=
[
"setuptools >= 43.0.0"
,
]
requires
=
[
"setuptools >= 65.0.0"
]
build-backend
=
"setuptools.build_meta"
[project]
name
=
"nbxmpp"
description
=
"XMPP Library"
keywords
=
[
"chat"
,
"messaging"
,
"im"
,
"xmpp"
]
readme
=
"README.md"
requires-python
=
">
=
3.10
"
license
=
{
text
=
"GPL-3.0-or-later"
}
authors
=
[
{name
=
"Philipp Hörist"
,
email
=
"philipp@hoerist.com"
}
,
{name
=
"Yann Leboulanger"
,
email
=
"yann@leboulanger.org"
}
,
]
classifiers
=
[
"Programming Language :: Python :: 3.10"
,
]
dependencies
=
[
"precis-i18n>
=
1.0
.
0
",
"packaging"
,
"idna"
,
"PyGObject"
,
]
dynamic
=
["version"]
[project.optional-dependencies]
gssapi
=
["gssapi"]
[project.urls]
repository
=
"https://dev.gajim.org/gajim/python-nbxmpp"
[tool.setuptools.packages.find]
include
=
["nbxmpp*"]
[tool.setuptools.package-data]
"nbxmpp"
=
["py.typed"]
[tool.setuptools.dynamic]
version
=
{
attr
=
"nbxmpp.__version__"
}
[tool.pyright]
pythonVersion
=
"3.10"
...
...
scripts/bump_version.py
View file @
510072da
...
...
@@ -9,7 +9,6 @@ REPO_DIR = Path(__file__).resolve().parent.parent
INIT
=
REPO_DIR
/
'nbxmpp'
/
'__init__.py'
CFG
=
REPO_DIR
/
'setup.cfg'
CHANGELOG
=
REPO_DIR
/
'ChangeLog'
VERSION_RX
=
r
'\d+\.\d+\.\d+'
...
...
@@ -28,10 +27,6 @@ def bump_version(current_version: str, new_version: str) -> None:
content
=
content
.
replace
(
current_version
,
new_version
,
1
)
INIT
.
write_text
(
content
,
encoding
=
'utf8'
)
content
=
CFG
.
read_text
(
encoding
=
'utf8'
)
content
=
content
.
replace
(
current_version
,
new_version
,
1
)
CFG
.
write_text
(
content
,
encoding
=
'utf8'
)
def
make_changelog
(
new_version
:
str
)
->
None
:
...
...
setup.cfg
deleted
100644 → 0
View file @
3e4fee24
[metadata]
name = nbxmpp
version = 4.0.1
description = XMPP Library
author = Yann Leboulanger, Philipp Hoerist
author_email = gajim-devel@gajim.org
long_description = file: README.md
long_description_content_type = text/markdown
keywords = xmpp chat
url = https://dev.gajim.org/gajim/python-nbxmpp
license_file = COPYING
license = GPL v3
classifiers =
Programming Language :: Python :: 3.10
[options]
python_requires = >=3.10
packages = find:
install_requires =
precis-i18n>=1.0.0
packaging
idna
[options.extras_require]
gssapi = gssapi
[options.packages.find]
exclude =
test*
[options.package_data]
nbxmpp = py.typed
setup.py
deleted
100755 → 0
View file @
3e4fee24
#!/usr/bin/env python3
from
setuptools
import
setup
setup
()
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment