| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent e258cee commit 987b2ee
5 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,11 +1,14 @@ | |||
| 1 | + <?xml version="1.0"?> | ||
| 1 | 2 | <Project> | |
| 2 | 3 | <PropertyGroup> | |
| 3 | - <VersionPrefix>3.0.0</VersionPrefix> | ||
| 4 | - <AssemblyCopyright>Copyright (c) 2006-2021 The Contributors of the Python.NET Project</AssemblyCopyright> | ||
| 4 | + <AssemblyCopyright>Copyright (c) 2006-2022 The Contributors of the Python.NET Project</AssemblyCopyright> | ||
| 5 | 5 | <AssemblyCompany>pythonnet</AssemblyCompany> | |
| 6 | 6 | <AssemblyProduct>Python.NET</AssemblyProduct> | |
| 7 | 7 | <LangVersion>10.0</LangVersion> | |
| 8 | 8 | <IsPackable>false</IsPackable> | |
| 9 | + <FullVersion>$([System.IO.File]::ReadAllText("version.txt"))</FullVersion> | ||
| 10 | + <VersionPrefix>$(FullVersion.Split('-', 2)[0])</VersionPrefix> | ||
| 11 | + <VersionSuffix Condition="$(FullVersion.Contains('-'))">$(FullVersion.Split('-', 2)[1])</VersionSuffix> | ||
| 9 | 12 | </PropertyGroup> | |
| 10 | 13 | <ItemGroup> | |
| 11 | 14 | <PackageReference Include="Microsoft.CSharp" Version="4.7.0" /> | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,4 +1,5 @@ | |||
| 1 | 1 | recursive-include src/ * | |
| 2 | 2 | include Directory.Build.* | |
| 3 | 3 | include pythonnet.sln | |
| 4 | + include version.txt | ||
| 4 | 5 | global-exclude **/obj/* **/bin/* | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,7 +1,53 @@ | |||
| 1 | 1 | [build-system] | |
| 2 | - requires = ["setuptools>=42", "wheel", "pycparser"] | ||
| 2 | + requires = ["setuptools>=61", "wheel"] | ||
| 3 | 3 | build-backend = "setuptools.build_meta" | |
| 4 | 4 | ||
| 5 | + [project] | ||
| 6 | + name = "pythonnet" | ||
| 7 | + description = ".NET and Mono integration for Python" | ||
| 8 | + license = {text = "MIT"} | ||
| 9 | + | ||
| 10 | + readme = "README.rst" | ||
| 11 | + | ||
| 12 | + dependencies = [ | ||
| 13 | + "clr_loader>=0.1.7" | ||
| 14 | + ] | ||
| 15 | + | ||
| 16 | + classifiers = [ | ||
| 17 | + "Development Status :: 5 - Production/Stable", | ||
| 18 | + "Intended Audience :: Developers", | ||
| 19 | + "License :: OSI Approved :: MIT License", | ||
| 20 | + "Programming Language :: C#", | ||
| 21 | + "Programming Language :: Python :: 3", | ||
| 22 | + "Programming Language :: Python :: 3.7", | ||
| 23 | + "Programming Language :: Python :: 3.8", | ||
| 24 | + "Programming Language :: Python :: 3.9", | ||
| 25 | + "Programming Language :: Python :: 3.10", | ||
| 26 | + "Operating System :: Microsoft :: Windows", | ||
| 27 | + "Operating System :: POSIX :: Linux", | ||
| 28 | + "Operating System :: MacOS :: MacOS X", | ||
| 29 | + ] | ||
| 30 | + | ||
| 31 | + dynamic = ["version"] | ||
| 32 | + | ||
| 33 | + [[project.authors]] | ||
| 34 | + name = "The Contributors of the Python.NET Project" | ||
| 35 | + email = "pythonnet@python.org" | ||
| 36 | + | ||
| 37 | + [project.urls] | ||
| 38 | + Homepage = "https://pythonnet.github.io/" | ||
| 39 | + Sources = "https://github.com/pythonnet/pythonnet" | ||
| 40 | + | ||
| 41 | + [tool.setuptools] | ||
| 42 | + zip-safe = false | ||
| 43 | + py-modules = ["clr"] | ||
| 44 | + | ||
| 45 | + [tool.setuptools.dynamic.version] | ||
| 46 | + file = "version.txt" | ||
| 47 | + | ||
| 48 | + [tool.setuptools.packages.find] | ||
| 49 | + include = ["pythonnet*"] | ||
| 50 | + | ||
| 5 | 51 | [tool.pytest.ini_options] | |
| 6 | 52 | xfail_strict = true | |
| 7 | 53 | testpaths = [ | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,16 +1,18 @@ | |||
| 1 | 1 | #!/usr/bin/env python | |
| 2 | 2 | ||
| 3 | - from setuptools import setup, Command, Extension | ||
| 4 | - from setuptools.command.build_ext import build_ext | ||
| 5 | 3 | import distutils | |
| 6 | - from distutils.command import build | ||
| 7 | - from subprocess import check_output, check_call | ||
| 4 | + from distutils.command.build import build as _build | ||
| 5 | + from setuptools.command.develop import develop as _develop | ||
| 6 | + from wheel.bdist_wheel import bdist_wheel as _bdist_wheel | ||
| 7 | + from setuptools import Distribution | ||
| 8 | + from setuptools import setup, Command | ||
| 8 | 9 | ||
| 9 | - import sys, os | ||
| 10 | + import os | ||
| 10 | 11 | ||
| 11 | 12 | # Disable SourceLink during the build until it can read repo-format v1, #1613 | |
| 12 | 13 | os.environ["EnableSourceControlManagerQueries"] = "false" | |
| 13 | 14 | ||
| 15 | + | ||
| 14 | 16 | class DotnetLib: | |
| 15 | 17 | def __init__(self, name, path, **kwargs): | |
| 16 | 18 | self.name = name | |
@@ -91,13 +93,6 @@ def run(self): | |||
| 91 | 93 | ||
| 92 | 94 | ||
| 93 | 95 | # Add build_dotnet to the build tasks: | |
| 94 | - from distutils.command.build import build as _build | ||
| 95 | - from setuptools.command.develop import develop as _develop | ||
| 96 | - from wheel.bdist_wheel import bdist_wheel as _bdist_wheel | ||
| 97 | - from setuptools import Distribution | ||
| 98 | - import setuptools | ||
| 99 | - | ||
| 100 | - | ||
| 101 | 96 | class build(_build): | |
| 102 | 97 | sub_commands = _build.sub_commands + [("build_dotnet", None)] | |
| 103 | 98 | ||
@@ -129,10 +124,6 @@ def finalize_options(self): | |||
| 129 | 124 | "bdist_wheel": bdist_wheel, | |
| 130 | 125 | } | |
| 131 | 126 | ||
| 132 | - | ||
| 133 | - with open("README.rst", "r") as f: | ||
| 134 | - long_description = f.read() | ||
| 135 | - | ||
| 136 | 127 | dotnet_libs = [ | |
| 137 | 128 | DotnetLib( | |
| 138 | 129 | "python-runtime", | |
@@ -143,35 +134,5 @@ def finalize_options(self): | |||
| 143 | 134 | ||
| 144 | 135 | setup( | |
| 145 | 136 | cmdclass=cmdclass, | |
| 146 | - name="pythonnet", | ||
| 147 | - version="3.0.0.dev1", | ||
| 148 | - description=".Net and Mono integration for Python", | ||
| 149 | - url="https://pythonnet.github.io/", | ||
| 150 | - project_urls={ | ||
| 151 | - "Source": "https://github.com/pythonnet/pythonnet", | ||
| 152 | - }, | ||
| 153 | - license="MIT", | ||
| 154 | - author="The Contributors of the Python.NET Project", | ||
| 155 | - author_email="pythonnet@python.org", | ||
| 156 | - packages=["pythonnet", "pythonnet.find_libpython"], | ||
| 157 | - install_requires=["clr_loader >= 0.1.7"], | ||
| 158 | - long_description=long_description, | ||
| 159 | - long_description_content_type="text/x-rst", | ||
| 160 | - py_modules=["clr"], | ||
| 161 | 137 | dotnet_libs=dotnet_libs, | |
| 162 | - classifiers=[ | ||
| 163 | - "Development Status :: 5 - Production/Stable", | ||
| 164 | - "Intended Audience :: Developers", | ||
| 165 | - "License :: OSI Approved :: MIT License", | ||
| 166 | - "Programming Language :: C#", | ||
| 167 | - "Programming Language :: Python :: 3", | ||
| 168 | - "Programming Language :: Python :: 3.7", | ||
| 169 | - "Programming Language :: Python :: 3.8", | ||
| 170 | - "Programming Language :: Python :: 3.9", | ||
| 171 | - "Programming Language :: Python :: 3.10", | ||
| 172 | - "Operating System :: Microsoft :: Windows", | ||
| 173 | - "Operating System :: POSIX :: Linux", | ||
| 174 | - "Operating System :: MacOS :: MacOS X", | ||
| 175 | - ], | ||
| 176 | - zip_safe=False, | ||
| 177 | 138 | ) | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1 @@ | |||
| 1 | + 3.0.0-dev1 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments