switch to setuptools_scm

MANIFEST.in is dead
master
Richard van der Hoff 5 years ago
parent 3227404c1b
commit 806f95bc06

@ -1,10 +0,0 @@
include *.in
include LICENSE
include tox.ini
include requirements.txt
prune doc
recursive-include matrix_synapse_saml_mozilla *.py
graft matrix_synapse_saml_mozilla/res
recursive-include tests *.py

@ -13,9 +13,15 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from pkg_resources import get_distribution, DistributionNotFound
from matrix_synapse_saml_mozilla.mapping_provider import SamlMappingProvider
from matrix_synapse_saml_mozilla.username_picker import pick_username_resource
__version__ = "0.1.dev5"
try:
__version__ = get_distribution(__name__).version
except DistributionNotFound:
# package is not installed
pass
__all__ = ["SamlMappingProvider", "pick_username_resource"]

@ -41,10 +41,11 @@ def exec_file(path_segments, name):
setup(
name="matrix-synapse-saml-mozilla",
version=exec_file(("matrix_synapse_saml_mozilla/__init__.py",), "__version__"),
packages=["matrix_synapse_saml_mozilla"],
include_package_data=True,
description="An Mozilla-flavoured SAML MXID mapper for Synapse",
use_scm_version=True,
setup_requires=["setuptools_scm"],
install_requires=["attr>=0.3.1", "pysaml2>=4.5.0"],
long_description=read_file(("README.md",)),
long_description_content_type="text/markdown",

@ -1,5 +1,5 @@
[tox]
envlist = packaging, lint, tests
envlist = lint, tests
[testenv]
setenv =
@ -14,10 +14,8 @@ commands =
[testenv:packaging]
skip_install = True
deps =
check-manifest
commands =
check-manifest
/bin/true
[testenv:lint]
skip_install = True

Loading…
Cancel
Save