Giter Club home page Giter Club logo

Comments (6)

simonw avatar simonw commented on June 4, 2024

The normal Click way of creating aliases doesn't really work here: https://click.palletsprojects.com/en/7.x/advanced/#command-aliases and https://github.com/ofek/hatch/blob/df2c9d46ee7713a1bc156c361cfd0f78e5935297/hatch/cli.py#L10

Because it requires modifying the command group (in this case the publish variable) - but that's created in Datasette core. The plugin just gets to do this: https://github.com/simonw/datasette-publish-now/blob/420f349b278857f62183d8e9835d64f116758be7/datasette_publish_now/__init__.py#L43-L67

from datasette-publish-vercel.

simonw avatar simonw commented on June 4, 2024

Could I register two commands - now and vercel - with the only difference being that the help for now says "Alias for vercel"?

from datasette-publish-vercel.

simonw avatar simonw commented on June 4, 2024

Still needed:

from datasette-publish-vercel.

simonw avatar simonw commented on June 4, 2024

I renamed this repo to simonw/datasette-publish-vercel

from datasette-publish-vercel.

simonw avatar simonw commented on June 4, 2024
simon@Simons-MacBook-Pro /tmp % cookiecutter gh:simonw/pypi-rename
You've downloaded /Users/simon/.cookiecutters/pypi-rename before. Is it okay to delete and re-download it? [yes]: 
new_package_name []: datasette-publish-vercel
old_package_name []: datasette-publish-now
old_package_new_version []: 0.7
simon@Simons-MacBook-Pro /tmp % cd datasette-publish-now 
simon@Simons-MacBook-Pro datasette-publish-now % find .
.
./README.md
./setup.py
simon@Simons-MacBook-Pro datasette-publish-now % cat README.md 
# datasette-publish-now is now datasette-publish-vercel

This package has been renamed. Use `pip install datasette-publish-vercel` instead.

New package: https://pypi.org/project/datasette-publish-vercel/
simon@Simons-MacBook-Pro datasette-publish-now % cat setup.py 
from setuptools import setup
import os

VERSION = "0.7"


def get_long_description():
    with open(
        os.path.join(os.path.dirname(os.path.abspath(__file__)), "README.md"),
        encoding="utf8",
    ) as fp:
        return fp.read()


setup(
    name="datasette-publish-now",
    description="datasette-publish-now is now datasette-publish-vercel",
    long_description=get_long_description(),
    long_description_content_type="text/markdown",
    version=VERSION,
    install_requires=["datasette-publish-vercel"],
    classifiers=["Development Status :: 7 - Inactive"],
)

from datasette-publish-vercel.

simonw avatar simonw commented on June 4, 2024
$ python3 setup.py sdist
running sdist
running egg_info
creating datasette_publish_now.egg-info
writing datasette_publish_now.egg-info/PKG-INFO
writing dependency_links to datasette_publish_now.egg-info/dependency_links.txt
writing requirements to datasette_publish_now.egg-info/requires.txt
writing top-level names to datasette_publish_now.egg-info/top_level.txt
writing manifest file 'datasette_publish_now.egg-info/SOURCES.txt'
reading manifest file 'datasette_publish_now.egg-info/SOURCES.txt'
writing manifest file 'datasette_publish_now.egg-info/SOURCES.txt'
running check
warning: check: missing required meta-data: url

warning: check: missing meta-data: either (author and author_email) or (maintainer and maintainer_email) must be supplied

creating datasette-publish-now-0.7
creating datasette-publish-now-0.7/datasette_publish_now.egg-info
copying files to datasette-publish-now-0.7...
copying README.md -> datasette-publish-now-0.7
copying setup.py -> datasette-publish-now-0.7
copying datasette_publish_now.egg-info/PKG-INFO -> datasette-publish-now-0.7/datasette_publish_now.egg-info
copying datasette_publish_now.egg-info/SOURCES.txt -> datasette-publish-now-0.7/datasette_publish_now.egg-info
copying datasette_publish_now.egg-info/dependency_links.txt -> datasette-publish-now-0.7/datasette_publish_now.egg-info
copying datasette_publish_now.egg-info/requires.txt -> datasette-publish-now-0.7/datasette_publish_now.egg-info
copying datasette_publish_now.egg-info/top_level.txt -> datasette-publish-now-0.7/datasette_publish_now.egg-info
Writing datasette-publish-now-0.7/setup.cfg
creating dist
Creating tar archive
removing 'datasette-publish-now-0.7' (and everything under it)
$ twine upload dist/datasette-publish-now-0.7.tar.gz 
Uploading distributions to https://upload.pypi.org/legacy/
Enter your username: simonw
Enter your password: 
Uploading datasette-publish-now-0.7.tar.gz
100%|███████████| 3.94k/3.94k [00:01<00:00, 2.66kB/s]

View at:
https://pypi.org/project/datasette-publish-now/0.7/

https://pypi.org/project/datasette-publish-now/

from datasette-publish-vercel.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.