sen-den / django-model2puml

Generator of project models structure in PlantUML class notation
MIT License
22 stars 4 forks source link

Provide django-model2puml from Debian? #7

Open petterreinholdtsen opened 1 year ago

petterreinholdtsen commented 1 year ago

Hi,

Are you interested in making the django-model2puml package available via the Debian archive? I created a request for packaging in https://bugs.debian.org/1029672 , and thought it best to check with upstream if there is any interest in this.

sen-den commented 1 year ago

Sure I am. I'm not familiar with Debian archive, are any my actions needed for this?

petterreinholdtsen commented 1 year ago

[Denis Senchishen]

Sure I am. I'm not familiar with Debian archive, are any my actions needed for this?

Most likely, as preparing a pacakge for Debian is likely to expose need for adjustments for better integration with other pieces of software and the distribution as a whole.

I take it from your response and response time that you are not a regular user of any Debian-related system. If you were, I could assist you in maintaining the package within Debian, in the process called sponsoring. I do not have capacity to do the work myself, but can help if someone else want to do the work. -- Happy hacking Petter Reinholdtsen

petterreinholdtsen commented 1 year ago

In case it might make it easier, I created a draft set of build rules and published them as <URL: https://salsa.debian.org/pere/django-model2puml >.

It would make it easier to automatically generate correct debian/copyright file if the source files had a copyright header stating the holder, year and license.

-- Happy hacking Petter Reinholdtsen

petterreinholdtsen commented 10 months ago

[Petter Reinholdtsen]

It would make it easier to automatically generate correct debian/copyright file if the source files had a copyright header stating the holder, year and license.

Are you willing to add such information to the source files of django-model2puml?

I talk about adding something like this at the top of the source files:

diff --git a/puml_generator/management/commands/generate_puml.py b/puml_generator/management/commands/generate_puml.py index 4db28b0..52768ef 100644 --- a/puml_generator/management/commands/generate_puml.py +++ b/puml_generator/management/commands/generate_puml.py @@ -1,3 +1,27 @@ +# -- coding: utf-8 -- +# Copyright (c) 2023 Denis Senchishen @.***> +# +# Permission is hereby granted, free of charge, to any person +# obtaining a copy of this software and associated documentation files +# (the "Software"), to deal in the Software without restriction, +# including without limitation the rights to use, copy, modify, merge, +# publish, distribute, sublicense, and/or sell copies of the Software, +# and to permit persons to whom the Software is furnished to do so, +# subject to the following conditions: +# +# The above copyright notice and this permission notice shall be +# included in all copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS +# BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN +# ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + + import codecs from django.apps import apps from django.core.management import BaseCommand

This will allow the Debian package build system to automatically extract and keep updated copyright information for the package. The copyright year need to be adjusted to match reality.

-- Happy hacking Petter Reinholdtsen