Python setup.py bdist_rpm prefix




















Per PEP , valid project names must:. For example, if you register a project named cool-stuff , users will be able to download it or declare a dependency on it using any of the following spellings:. Versions are displayed on PyPI for each release if you publish your project. See Choosing a versioning scheme for more information on ways to use versions to convey compatibility information to your users.

If the project code itself needs run-time access to the version, the simplest way is to keep the version in both setup. These values will be displayed on PyPI if you publish your project. On pypi. Classifiers exist for all major open-source licenses. The license argument is more typically used to indicate differences from well-known licenses, or to include your own, unique license.

Provide a list of classifiers that categorize your project. List additional relevant URLs about your project. This is the place to link to bug trackers, source repositories, or where to support package development. The string of the key is the exact text that will be displayed on PyPI. Set packages to a list of all packages in your project, including their subpackages, sub-subpackages, etc.

Although the packages can be listed manually, setuptools. Use the include keyword argument to find only the given packages. Use the exclude keyword argument to omit packages that are not intended to be released and installed.

When the project is installed by pip , this is the specification that is used to install its dependencies. Support for this feature is relatively recent. In addition, only versions 9. Often, additional files need to be installed into a package. The value must be a mapping from package name to a list of relative path names that should be copied into the package. The paths are interpreted as relative to the directory containing the package. For more information, see Including Data Files from the setuptools docs.

It is mostly useful if you need to install files which are used by other programs, which may be unaware of Python packages. Each directory, files pair in the sequence specifies the installation directory and the files to install there. Each file name in files is interpreted relative to the setup.

For more information see the distutils section on Installing Additional Files. So, if your project uses setuptools , you must use pip to install it. Alternatively, if you must use python setup.

Use this keyword to specify any plugins that your project provides for any named entry points that may be defined by your project or others that you depend on. For more information, see the section on Advertising Behavior from the setuptools docs.

You can then let the toolchain handle the work of turning these interfaces into actual scripts 2. The scripts will be generated during the install of your distribution. For more information, see Automatic Script Creation from the setuptools docs. Different Python projects may use different versioning schemes based on the needs of that particular project, but all of them are required to comply with the flexible public version scheme specified in PEP in order to be supported in tools and libraries like pip and setuptools.

To further accommodate historical variations in approaches to version numbering, PEP also defines a comprehensive technique for version normalisation that maps variant spellings of different version numbers to a standardised canonical form.

For new projects, the recommended versioning scheme is based on Semantic Versioning , but adopts a different approach to handling pre-releases and build metadata. Y requires at least release X.

Python projects adopting semantic versioning should abide by clauses of the Semantic Versioning 2. Semantic versioning is not a suitable choice for all projects, such as those with a regular time based release cadence and a deprecation process that provides warnings for a number of releases prior to removal of a feature. A key advantage of date based versioning is that it is straightforward to tell how old the base feature set of a particular release is given just the version number. Version numbers for date based projects typically take the form of YEAR.

In order to interact with pypi, you first need to setup an account. Now, once registered, when you run setup. To get around this, place a. The structure of a. Also, you often want to sign the files using gpg encryption. With your setup. Just type:. There are three major setup. A key point here is you need to run these commands with the version of python you want to support. Connect and share knowledge within a single location that is structured and easy to search.

I am using Python setuptools for building a package. The fpm tool makes easy to generate the RPM package and change the name or another parameter. By default, fpm makes the RPM with " python- prefix name, but the package name can be set with -n parameter.

An example:. Well it is indeed a slightly non-standard and so not directly supported. You can however do python setup. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Collectives on Stack Overflow.

Learn more. Asked 10 years, 5 months ago. Active 5 years ago.



0コメント

  • 1000 / 1000