#๐ PyPi Project not distributing newest update, and new builds fail (doesn't include main file)
35 messages ยท Page 1 of 1 (latest)
@fleet escarp
Remember to:
- Ask your Python question, not if you can ask or if there's an expert who can help.
- Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
- Explain what you expect to happen and what actually happens.
:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.
I don't think I made any changes which would cause this, but I think at this point I'm pretty lost. I got this toml file, it takes the version number from ASnake.py. That worked fine the first time, but now it doesn't detect ASnake.py at all seemingly. I did a manual entering of the version and the file was missing completely.
Here is my pyproject file:
[build-system]
requires = ["setuptools>=46.4.0", "wheel", "sly>=0.4", "autopep8>=1.5.5"]
build-backend = "setuptools.build_meta"
[project]
name = "ASnake_Ahri_Fox"
dynamic = ["version"]
authors = [
{ name="Ahri Fox"},
]
description = "Python optimizing compiler for the ASnake programming language."
readme = "README.md"
requires-python = ">=3.6"
license = { file = "LICENSE.txt" }
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Operating System :: POSIX :: Linux",
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Natural Language :: English",
"Programming Language :: Cython",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: MicroPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Topic :: Software Development :: Code Generators",
"Topic :: Software Development :: Version Control :: Git"
]
keywords = ["programming language","transpiler","pyston","compiler"]
[project.urls]
Homepage = "https://asnake.org"
Github = "https://github.com/AhriFoxSnek/ASnake"
Issues = "https://github.com/AhriFoxSnek/ASnake/issues"
[options]
python_requires = ">=3.6"
install_requires = [
"sly>=0.4",
"autopep8>=1.5.5"
]
[tool.setuptools.package-data]
"data" = ["*.bat", "*.asnake", "*.py"]
[tool.setuptools.dynamic]
version = {attr = "ASnake.__version__"}
[entry-points]
console_scripts = [
"ASnake = ASnake:main"
]
and here is the error I'm getting with python -m build
https://paste.pythondiscord.com/PRWQ
and here is the directory, very simple
In regards to it not distributing, if I install it on some random machine it'll download 0.13.35, even though i uploaded 0.13.36 ... wait i think i know why.
pip install ASnake-Ahri-Fox==0.13.36
vs
pip install ASnake
omfg i uploaded a completely separate package! lol
still need to fix this build issue. but would changing name='ASnake' fix that?
that is not python its toml whts taht
its for building a package and distributing it on pypi. using a setup.py is deprecated.
It might. You can test it by uploading to test pypi instead of prod pypi
yeah changing the name seemed to help. i guess i consider that part solved.
but not including the main file? bluh!
PyPi Project not distributing newest update, and new builds fail (doesn't include main file)
PyPi Project toml new builds fail (doesn't include main file)
what main file?
ASnake.py , as pictured in this directory.
hmm
when i specify the version manually, ASnake.py simply isnt included
i figure this is some kind of error in how i am specifying things
yeah
maybe bump it again and rebuild?
strange
did 0.13.38 (as a test)
though ig the main package is actually on 0.13.36
but i dont think thats relevant
if i delete the data folder, then ASnake.py appears as it should.
so something about the data folder being there is causing this issue.
adding "ASnake.py" to the data list seemed to fix it.
[tool.setuptools.package-data]
"data" = ["*.bat", "*.asnake", "*.py", "ASnake.py"]
okay. thanks guys!
[SOLVED] PyPi Project toml new builds fail (doesn't include main file)
This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.
๐ [SOLVED] PyPi Project toml new builds fail (doesn't include main file)
This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.