You should always upload a sourceĭistribution and provide built distributions for the platforms your project isĬompatible with. Newer pip versions preferentially install built distributions, but willįall back to source distributions if needed. └── example_package_YOUR_USERNAME_HERE-0.0.1.tar.gz ├── example_package_YOUR_USERNAME_HERE-0.0.1-p圓-none-any.whl Make sure you have the latest version of PyPA’s build installed: Package Index and can be installed by pip. These are archives that are uploaded to the Python The next step is to generate distribution packagesįor the package. Include additional files, see the documentation for your build backend. The files listed above will be included automatically in your OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, IN NO EVENT SHALL THEĪUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,įITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR The above copyright notice and this permission notice shall be included in allĬopies or substantial portions of the Software. To use, copy, modify, merge, publish, distribute, sublicense, and/or sellĬopies of the Software, and to permit persons to whom the Software isįurnished to do so, subject to the following conditions: In the Software without restriction, including without limitation the rights Of this software and associated documentation files (the "Software"), to deal Permission is hereby granted, free of charge, to any person obtaining a copy You can customize thisĬopyright (c) 2018 The Python Packaging Authority Open README.md and enter the following content. Other common fields are keywords to improve discoverability and theĭependencies that are required to install your package. See the project metadata specification forĭetails on these and other fields that can be defined in the Generally this could be to the source, documentation, issue trackers, etc. Urls lets you list any number of extra links to show on PyPI. Which license your package is available under, and which operating systems You shouldĪlways include at least which version(s) of Python your package works on, In this case, the package is only compatible with Pythonģ, is licensed under the MIT license, and is OS-independent. Packages until it finds one that has a matching Python version.Ĭlassifiers gives the index and pip some additional metadataĪbout your package. Installers like pip will look back through older versions of Requires-python gives the versions of Python supported by your License is the path to the LICENSE file, described below. There also is a more advanced table form described in the In this case, the description is loaded from README.md (which is aĬommon pattern). This is shown on the package detail page on PyPI. Readme is a path to a file containing a detailed description of the You can also list maintainers in the sameĭescription is a short, one-sentence summary of the package. Some build backends allow it to be specifiedĪnother way, such as from a file or a git tag.Īuthors is used to identify the author of the package you specify a nameĪnd an email for each author. See the version specifier specificationįor more details on versions. Package with the same name as one which already exists. Username for this tutorial, as this ensures you won’t try to upload a Long as it only contains letters, numbers. Name is the distribution name of your package. Parse the data from the json data ( How can I parse GeoJSON with Python, Parse JSON in Python ) and print it as pdf using pdfdocument ( ) import jsonįrom pdfdocument.Name = "example_package_YOUR_USERNAME_HERE" version = "0.0.1" authors = "Homepage" = "" "Bug Tracker" = "" To run the shell script(s), do the same as above.ĭevelopers can look at the source code for further information.Īn alternative is to use pdfdocument to create the pdf, it can be installed using pip ( ) This will give a usage message about the correct usage and arguments To use any of the Python programs, run the. Then, copyĪll the files in xtopdf.zip into a directory which is on your Steps such as adding needed directories to your PYTHONPATH. Installed all the prerequisities mentioned above, including setup To install the files, first make sure that you have downloaded and PDFWriter - a core class of the xtopdf toolkit - can now be used withĪ Python context manager, a.k.a.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |