unodit icon indicating copy to clipboard operation
unodit copied to clipboard

Add setup.py / distribute via pypi.

Open prof-milki opened this issue 4 years ago • 0 comments

type: feature request
severity: none
category: packaging
priority: very low

I'm tempted to say that unodit should be available per pypi. But of course that might require some renaming. Such as "pythonpath" becoming "unodit" and "unodit.py" contained as "unodit/init.py".

And I realize resource packing (templates/src) is what makes this task fairly difficult. But often you can just move them below the package dir as well, and have them included alongside:

setup(
    ...,
    name="unodit",
    version="0.8.0",
    long_description="README.rst",
    packages=["unodit"],
    package_dir={"": "unodit"},
    package_data={
        "unodit": [
            "./src/*.*",
            "./templates/*.*",
            "./resources/*"
        ],
    },
    include_package_data=True,
    # data_files=[("man/man1", ["manpage/unodit.1"])],
    entry_points={
        "console_scripts": [
            "unodit=unodit:main",
        ]
    }

Again, not essential. Just a "nice to have".
(zip/git download works just fine.)

prof-milki avatar Feb 09 '21 04:02 prof-milki